package com.ll.domain.classbase.enums;

import lombok.Getter;

@Getter
public enum CourseStatusEnum  {
    //
    未开始(),//0
    开始中(),//1
    已经结束(),//2
    ;

    public boolean checkCanApply() {
        return this == CourseStatusEnum.未开始;
    }

    public boolean checkCanCancelApply() {
        return this == CourseStatusEnum.未开始;
    }

    public boolean checkSignup() {
        return this == CourseStatusEnum.未开始 || this == CourseStatusEnum.已经结束;
    }

}
